package com.mapper;

import com.pojo.Video;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface VideoMapper {
    void insert(@Param("id")int id,
                @Param("opposite")int opposite,
                @Param("support")int support,
                @Param("tittle")String tittle,
                @Param("remarknum")int remarknum,
                @Param("collectionnum")int collectionnum,
                @Param("userid")int userid,
                @Param("introduce")String introduce,
                @Param("uploadtime")Date uploadtime,
                @Param("flag")int flag,
                @Param("categoryid")int categoryid);
    Integer selectMaxId();
    List<Video> selectUserVideo(int id);
}
